#ifndef __PAGELIB_HPP__
#define __PAGELIB_HPP__

#include "Configuration.hpp"
#include "WebPage.hpp"
#include <vector>
#include <map>

using std::map;
using std::vector;
using std::string;
using std::pair;

class DirScanner;
class PageLib
{
public:
    PageLib(Configuration* conf); 
    
    void create();
    //存储任务交给Pagelibprocessor
    vector<WebPage> & getWebPages();

private:
    vector<string> _files;
    map<int, pair<int, int>> _offsetLib;

    vector<WebPage> _webPages;//
    
    Configuration* _conf;
};

#endif
